
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>本地镜像发布到阿里云 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">

    
    
    <link rel="prev" href="Docker常用安装.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="./">
            
                <a href="./">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    简介
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="Docker概念/docker基础概念.html">
            
                <a href="Docker概念/docker基础概念.html">
            
                    
                    Docker概念
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="Docker安装/docker安装流程Linux.html">
            
                <a href="Docker安装/docker安装流程Linux.html">
            
                    
                    Docker安装说明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="Docker镜像加速/Docker阿里云镜像加速器配置.html">
            
                <a href="Docker镜像加速/Docker阿里云镜像加速器配置.html">
            
                    
                    Docker的镜像加速
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="Docker运行hello-world/Docker运行hello-world.html">
            
                <a href="Docker运行hello-world/Docker运行hello-world.html">
            
                    
                    Docker运行hello-world
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="Docker运行底层原理/Docker运行底层原理.html">
            
                <a href="Docker运行底层原理/Docker运行底层原理.html">
            
                    
                    Docker运行底层原理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    命令
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="Docker常用命令.html">
            
                <a href="Docker常用命令.html">
            
                    
                    Docker常用命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="Docker镜像命令.html">
            
                <a href="Docker镜像命令.html">
            
                    
                    Docker镜像命令
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="Docker容器命令.html">
            
                <a href="Docker容器命令.html">
            
                    
                    Docker容器命令
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" >
            
                <span>
            
                    
                    原理
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="Docker镜像.html">
            
                <a href="Docker镜像.html">
            
                    
                    Docker镜像
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="Docker容器数据卷.html">
            
                <a href="Docker容器数据卷.html">
            
                    
                    Docker容器数据卷
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="DockerFile解析.html">
            
                <a href="DockerFile解析.html">
            
                    
                    DockerFile解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="Docker常用安装.html">
            
                <a href="Docker常用安装.html">
            
                    
                    Docker常用安装
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.5" data-path="本地镜像发布到阿里云.html">
            
                <a href="本地镜像发布到阿里云.html">
            
                    
                    本地镜像发布到阿里云
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="." >本地镜像发布到阿里云</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <!--
 * @Filename: 
 * @Description: 
 * @Author: liushuangdan
 * @Date: 2021-03-19 14:12:21
 * @LastEditTime: 2021-03-19 15:32:19
 * @FilePath: \DockerBook\本地镜像发布到阿里云.md
-->
<h2 id="&#x672C;&#x5730;&#x955C;&#x50CF;&#x53D1;&#x5E03;&#x5230;&#x963F;&#x91CC;&#x4E91;">&#x672C;&#x5730;&#x955C;&#x50CF;&#x53D1;&#x5E03;&#x5230;&#x963F;&#x91CC;&#x4E91;</h2>
<h3 id="&#x672C;&#x5730;&#x955C;&#x50CF;&#x53D1;&#x5E03;&#x5230;&#x963F;&#x91CC;&#x4E91;&#x6D41;&#x7A0B;">&#x672C;&#x5730;&#x955C;&#x50CF;&#x53D1;&#x5E03;&#x5230;&#x963F;&#x91CC;&#x4E91;&#x6D41;&#x7A0B;</h3>
<p><img src="images/dockerFile/&#x53D1;&#x5E03;&#x963F;&#x91CC;&#x4E91;.png" alt="&#x53D1;&#x5E03;&#x963F;&#x91CC;&#x4E91;"></p>
<h3 id="&#x955C;&#x50CF;&#x7684;&#x751F;&#x6210;&#x65B9;&#x6CD5;">&#x955C;&#x50CF;&#x7684;&#x751F;&#x6210;&#x65B9;&#x6CD5;</h3>
<ol>
<li>&#x524D;&#x9762;&#x7684;dockerfile</li>
<li><p>&#x4ECE;&#x5BB9;&#x5668;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;&#x65B0;&#x7684;&#x955C;&#x50CF;
<code>docker commit [OPTION] &#x5BB9;&#x5668;ID [REPOSITORY[:TAG]]</code></p>
<pre><code> OPTIONS&#x8BF4;&#x660E;&#xFF1A;

     -a :&#x63D0;&#x4EA4;&#x7684;&#x955C;&#x50CF;&#x4F5C;&#x8005;&#xFF1B;

     -m :&#x63D0;&#x4EA4;&#x65F6;&#x7684;&#x8BF4;&#x660E;&#x6587;&#x5B57;&#xFF1B;
</code></pre><p> <img src="images/dockerFile/&#x5BB9;&#x5668;&#x521B;&#x5EFA;&#x955C;&#x50CF;.png" alt="&#x5BB9;&#x5668;&#x521B;&#x5EFA;&#x955C;&#x50CF;"></p>
</li>
</ol>
<h3 id="&#x5C06;&#x672C;&#x5730;&#x955C;&#x50CF;&#x63A8;&#x9001;&#x5230;&#x963F;&#x91CC;&#x4E91;">&#x5C06;&#x672C;&#x5730;&#x955C;&#x50CF;&#x63A8;&#x9001;&#x5230;&#x963F;&#x91CC;&#x4E91;</h3>
<ol>
<li>&#x672C;&#x5730;&#x955C;&#x50CF;&#x7D20;&#x6750;&#x539F;&#x578B;
 <img src="images/dockerFile/&#x672C;&#x5730;&#x955C;&#x50CF;.png" alt="&#x672C;&#x5730;&#x955C;&#x50CF;"></li>
<li>&#x963F;&#x91CC;&#x4E91;&#x5F00;&#x53D1;&#x8005;&#x5E73;&#x53F0; <a href="https://dev.aliyun.com/search.html" target="_blank">https://dev.aliyun.com/search.html</a></li>
<li>&#x521B;&#x5EFA;&#x4ED3;&#x5E93;&#x955C;&#x50CF;<ol>
<li>&#x547D;&#x540D;&#x7A7A;&#x95F4;</li>
<li>&#x4ED3;&#x5E93;&#x540D;&#x79F0;</li>
</ol>
</li>
<li>&#x5C06;&#x955C;&#x50CF;&#x63A8;&#x9001;&#x5230;registry<ol>
<li><img src="images/dockerFile/&#x955C;&#x50CF;&#x63A8;&#x9001;.png" alt="&#x955C;&#x50CF;&#x63A8;&#x9001;"></li>
<li><img src="images/dockerFile/&#x955C;&#x50CF;&#x63A8;&#x9001;&#x547D;&#x4EE4;.png" alt="&#x955C;&#x50CF;&#x63A8;&#x9001;&#x547D;&#x4EE4;"></li>
</ol>
</li>
<li>&#x516C;&#x6709;&#x4E91;&#x53EF;&#x4EE5;&#x67E5;&#x8BE2;&#x5230;<ol>
<li><img src="images/dockerFile/&#x5171;&#x6709;&#x4E91;&#x67E5;&#x8BE2;.png" alt="&#x5171;&#x6709;&#x4E91;&#x67E5;&#x8BE2;"></li>
</ol>
</li>
<li>&#x67E5;&#x770B;&#x8BE6;&#x60C5;
 <img src="images/dockerFile/&#x67E5;&#x770B;&#x8BE6;&#x60C5;.png" alt="&#x67E5;&#x770B;&#x8BE6;&#x60C5;"></li>
</ol>
<h3 id="&#x5C06;&#x963F;&#x91CC;&#x4E91;&#x7684;&#x955C;&#x50CF;&#x4E0B;&#x8F7D;&#x5230;&#x672C;&#x5730;">&#x5C06;&#x963F;&#x91CC;&#x4E91;&#x7684;&#x955C;&#x50CF;&#x4E0B;&#x8F7D;&#x5230;&#x672C;&#x5730;</h3>
<p>&#x4E0B;&#x8F7D;&#x5230;&#x672C;&#x5730;
<img src="images/dockerFile/&#x4E0B;&#x8F7D;&#x5230;&#x672C;&#x5730;.png" alt="&#x4E0B;&#x8F7D;&#x5230;&#x672C;&#x5730;"></p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="Docker常用安装.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: Docker常用安装">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"本地镜像发布到阿里云","level":"1.4.5","depth":2,"previous":{"title":"Docker常用安装","level":"1.4.4","depth":2,"path":"Docker常用安装.md","ref":"Docker常用安装.md","articles":[]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"本地镜像发布到阿里云.md","mtime":"2021-03-19T07:32:19.050Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-03-19T07:46:19.806Z"},"basePath":".","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="gitbook/gitbook.js"></script>
    <script src="gitbook/theme.js"></script>
    
        
        <script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

